package com.cpecc.model.wuzi;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cpecc.model.system.Dep;
import com.cpecc.liucheng.model.HuanJie;
import com.cpecc.model.system.User;

@Entity
@Table(name = "DATA_WUZI_SHENQING")
public class ShenQing implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7715840273163263276L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@ManyToOne
	@JoinColumn(name="WUZI_ID")
	private WuZi wuZi;
	
	@ManyToOne
	@JoinColumn(name="DEP_ID")
	private Dep dep;
	
	@ManyToOne
	@JoinColumn(name="USER_ID")
	private User user;
	
	@Column	
	private Date shenQingRQ;
	
	@Column(length=64)
	private String wuZiMiaoShu;
	
	@Column(length=64)
	private String shenQingYY;	
	
	@ManyToOne
	@JoinColumn(name="HUANJIE_ID")
	private HuanJie huanJie;
	
	@Column
	private int dangQianShu;
	
	@Column
	private int zongShu;
	
	@Column
	private int shenQingSL;
	
	@ManyToOne
	@JoinColumn(name="CAIMAIR_ID")
	private User caiMaiR;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public WuZi getWuZi() {
		return wuZi;
	}

	public void setWuZi(WuZi wuZi) {
		this.wuZi = wuZi;
	}

	public Dep getDep() {
		return dep;
	}

	public void setDep(Dep dep) {
		this.dep = dep;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getShenQingRQ() {
		return shenQingRQ;
	}

	public void setShenQingRQ(Date shenQingRQ) {
		this.shenQingRQ = shenQingRQ;
	}

	public String getWuZiMiaoShu() {
		return wuZiMiaoShu;
	}

	public void setWuZiMiaoShu(String wuZiMiaoShu) {
		this.wuZiMiaoShu = wuZiMiaoShu;
	}

	public String getShenQingYY() {
		return shenQingYY;
	}

	public void setShenQingYY(String shenQingYY) {
		this.shenQingYY = shenQingYY;
	}

	public HuanJie getHuanJie() {
		return huanJie;
	}

	public void setHuanJie(HuanJie huanJie) {
		this.huanJie = huanJie;
	}	

	public int getDangQianShu() {
		return dangQianShu;
	}

	public void setDangQianShu(int dangQianShu) {
		this.dangQianShu = dangQianShu;
	}

	public int getZongShu() {
		return zongShu;
	}

	public void setZongShu(int zongShu) {
		this.zongShu = zongShu;
	}	

	public int getShenQingSL() {
		return shenQingSL;
	}

	public void setShenQingSL(int shenQingSL) {
		this.shenQingSL = shenQingSL;
	}	

	public User getCaiMaiR() {
		return caiMaiR;
	}

	public void setCaiMaiR(User caiMaiR) {
		this.caiMaiR = caiMaiR;
	}

	public ShenQing(String id, WuZi wuZi, Dep dep, User user, Date shenQingRQ,
			String wuZiMiaoShu, String shenQingYY, HuanJie huanJie,
			int dangQianShu, int zongShu, int shenQingSL, User caiMaiR) {
		super();
		this.id = id;
		this.wuZi = wuZi;
		this.dep = dep;
		this.user = user;
		this.shenQingRQ = shenQingRQ;
		this.wuZiMiaoShu = wuZiMiaoShu;
		this.shenQingYY = shenQingYY;
		this.huanJie = huanJie;
		this.dangQianShu = dangQianShu;
		this.zongShu = zongShu;
		this.shenQingSL = shenQingSL;
		this.caiMaiR = caiMaiR;
	}

	public ShenQing() {
		super();
	}
}
